package app.netant.finishbook.uww3;

import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;

import app.netant.book.base.BaseDetail;
import app.netant.book.base.BaseEntity;
import app.netant.book.base.BasePage;
import cn.lily.com.enviroment.Enviroment;

public class Uww3Page extends BasePage {

	public Uww3Page(String netSite) {
		super(netSite);
		this.tableKey = "uww3";
		this.selectKey = ".globalBox #pageMain .mainBody .pageMainArea #listbox #mainlistUL .mainListInfo .mainListName .mainSoftName a";
		this.preHref = "https://www.3uww.cc";
	}

	@Override
	public String buildHref(Element element) {		
		return element.attr("href");
	}

	@Override
	public BaseEntity buildEntity() {
		return new Uww3Entity();
	}

	@Override
	public BaseDetail buildDetail(String href) {
		return new Uww3Detail(href);
	}

	@Override
	public void afterEntity(BaseEntity entity, Element element) {
		
	}
	
	public static void main(String[] args) {
		Enviroment.createEnv();
		Enviroment.getEnv().getLogBean().beginLog();
		Uww3Page page = new Uww3Page("https://www.3uww.cc/soft1/");
		page.analyseHref();
	}
	
}
